package com.airbat.prize.common.enums;

import com.airbat.prize.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 案件发展阶段
 */
@Getter
@AllArgsConstructor
public enum CaseMergeStageEnum implements IntArrayValuable {

    //案件发展阶段 0基本信息 1立案 2移送 3公诉 4一审 5二审
    BASE(0, "基本信息"),
    REGISTER(1, "立案"),
    TRANSFER(2, "移送"),
    LITIGATE(3, "公诉"),
    FIRST(4, "一审"),
    TWO(5, "二审");

    /**
     * 值
     */
    private final Integer value;
    /**
     * 名称
     */
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CaseMergeStageEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
